home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2373 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  35 lines

  1. Newsgroups: comp.lang.c++
  2. Path: solotmac.is.chbs!isolot
  3. From: Philippe Solot <isolot@chbs.ciba.com>
  4. Subject: DLL-interface between Borland C++ and Visual Basic : array problems
  5. Message-ID: <1996Jan16.133818.6347@ciba-geigy.ch>
  6. X-Xxmessage-Id: <AD21696779022A9B@solotmac.is.chbs>
  7. X-Xxdate: Tue, 16 Jan 96 13:40:39 GMT
  8. Sender: news@ciba-geigy.ch
  9. Nntp-Posting-Host: solotmac
  10. Organization: Ciba-Geigy Basel
  11. X-Useragent: Nuntius v1.1.1d24
  12. Date: Tue, 16 Jan 1996 13:38:18 GMT
  13.  
  14. We are developing a Borland C++ function, compile it in a DLL and call it
  15. from Visual Basic. The function has about 40 parameters, several
  16. of which are more-dimensional arrays (each smaller than 64K) of
  17. floating-point values (VB types single or double). The arrays are passed
  18. by reference.
  19. The interface works so far since the DLL can be started. The first thing
  20. done
  21. by the DLL is to check that the numerical values defined in VB arrived
  22. unchanged in the DLL. When a difference occurs, the DLL returns an error
  23. value defined by ourselves. This now occurs; it seems to us that part of
  24. some
  25. numerical (float) arrays are not transmitted properly.
  26. Thanks for any help on this matter, by mail to : 
  27. wbom@chbs.ciba.com
  28. kobler@dma.epfl.ch
  29.  
  30.  
  31. Dr. Ph. SOLOT
  32. CIba-Geigy AG
  33. 4002 Basel
  34. Switzerland
  35.